<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>解析日期示例</title>
</head>
<body>
	<div style="margin: auto; width: 80%">
		<h3>解析日期示例:</h3>
		<c:set var="now" value="2018-10-10" />
		<fmt:parseDate value="${now}" var="parsedEmpDate" pattern="yyyy-MM-dd" />
		<fmt:parseDate value="${now}" var="parsedEmpDate" pattern="yyyy-MM-dd" />
		<p>
			解析日期结果:
			<c:out value="${parsedEmpDate}" /><br/>
			<c:out value="${now}" />
		</p>
	</div>

</body>
</html>